import request from '@/utils/request'

export function getList(data) {
  return request({
    url: 'http://localhost:8080/PatientFile/getList',
    method: 'get',
    params:data
  })
}

export function updateFile(data) {
  return request({
    url: 'http://localhost:8080/PatientFile/updateFile',
    method: 'put',
    params:data
  })
}

export function deleteFile(id) {
  return request({
    url: 'http://localhost:8080/PatientFile/delete/'+id,
    method: 'delete'
  })
}

export function getByid(id) {
  return request({
    url: 'http://localhost:8080/PatientFile/getByid/'+id,
    method: 'get'
  })
}

export function add(data) {
  return request({
    url: 'http://localhost:8080/PatientFile/addFile',
    method: 'post',
    params:data
  })
}